<template>
	<view class="say2">
		
		<view>
			<text>{{uname}}</text>
			<text class="txt"><text>{{sayContent}}</text></text>
		</view>
		<image :src="uimg" mode="scaleToFill"></image>
	</view>
</template>

<script>
	export default {
		name:"say1",
		props:{
			sayContent:{
				type:String,
				required:true
			},
			uname:{
				type:String,
				required:true
			},
			uimg:{
				type:String,
				required:true
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.say2{
		margin-left: 95px;
		padding: $uni-spacing-col-lg $uni-spacing-row-lg;
		>image{
			width: 40px;
			height: 40px;
		}
		>view{
			flex-direction: column;
			margin-right: 10px;
			>.txt{
				margin-left: 100px;
				//width: min-content;
				//flex: 1;
				text-align: right;
				background-color: skyblue;
				padding: 5px 10px;
				border-radius: 50px;
				color: white;
				font-size: $uni-font-size-base;
				margin-top:$uni-spacing-col-base;
			}
			>text:nth-child(1){
				color: forestgreen;
				font-size: $uni-font-size-lg;
				width: 200px;
				text-align: right;
			}
		}
	}
</style>